<!DOCTYPE html>
<html lang="en">

<head>
    <title>My BCIT Project</title>
    <meta name="comp2800 template" content="My 2800 App">

    <!------------------------>
    <!-- Required meta tags -->
    <!------------------------>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/styles/recipes.css">
    <script src="scripts/checklogin.js"></script>


    <!------------------------------------------>
    <!-- Bootstrap Library CSS JS CDN go here -->
    <!------------------------------------------>
   <script src="https://cdnjs.cloudflare.com/ajax/libs/bcryptjs/2.4.3/bcrypt.min.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet"  crossorigin="anonymous">
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.3/js/bootstrap.js"  crossorigin="anonymous"></script>

    <!-------------------------------------------------------->
    <!-- Firebase 8 Library related CSS, JS, JQuery go here -->
    <!-------------------------------------------------------->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>

    <!-------------------------------------------->
    <!-- Other libraries and styles of your own -->
    <!-------------------------------------------->
    <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
    <!-- <link rel="stylesheet" href="./styles/style.css"> -->

</head>

<body>
    <!------------------------------>
    <!-- Your HTML Layout go here -->
    <!------------------------------>

    <!-- our own navbar goes here -->
    <nav id="navbarPlaceholder"></nav>


    <!-- the body of your page goes here -->
    <!-- stuff -->
     <main class="container">
        <div class="container">
            <a href="recipes.html" class="back-button">
                <i class="fa fa-arrow-left"></i><-Retrun
            </a>
        </div>
        <section id="recipe-detail" class="recipe-detail">
            <div id="recipe-loading" class="loading-indicator">
                <div class="spinner"></div>
                <p>Details of the recipe are being loaded...</p>
            </div>
            
            <div id="recipe-content" class="recipe-content hidden">
                <img id="detail-image" src="" alt="食谱图片" class="recipe-image">
                <h2 id="detail-title" class="recipe-title"></h2>
                
                <div class="recipe-meta">
                    <span class="cook-time">
                        <i class="fa fa-clock-o"></i> <span id="detail-time"></span>
                    </span>
                    <span class="difficulty">
                        <i class="fa fa-signal"></i> <span id="detail-difficulty"></span>
                    </span>
                    <span class="servings">
                        <i class="fa fa-users"></i> <span id="detail-servings"></span>
                    </span>
                </div>
                
                <div class="ingredients-section">
                    <h3 class="section-title">List of ingredients</h3>
                    <ul id="detail-ingredients" class="ingredients-list">
                    </ul>
                </div>
                
                <div class="steps-section">
                    <h3 class="section-title">Cooking steps</h3>
                    <ol id="detail-steps" class="steps-list">
                    </ol>
                </div>
            </div>
            
            <div id="recipe-error" class="error-message hidden">
                <i class="fa fa-exclamation-triangle"></i>
                <p>The recipe failed to load. Please return to the homepage and reselect</p>
                <a href="index.html" class="back-button">Return</a>
            </div>
        </section>
    </main>
            



    <!-- our own footer goes here-->
    <nav id="footerPlaceholder"></nav>

    <!---------------------------------------------->
    <!-- Your own JavaScript functions go here    -->
    <!---------------------------------------------->
    <script src="./scripts/skeleton.js"></script>
    <script src="./styles/recipes.css"></script>
    <!-- <script src="./scripts/script.js"></script> -->
    <script src="./scripts/recipes.js"></script>

</body>

</html>
